package com.zzxy.spring5.dao.impl;

import com.zzxy.spring5.dao.IMemberDao;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class MemberDaoImpl extends JdbcDaoSupport implements IMemberDao {
/*private JdbcTemplate jdbcTemplate;

    public JdbcTemplate getJdbcTemplate() {
        return jdbcTemplate;
    }

    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }*/

    @Override
    public void addMember() {
      this.getJdbcTemplate().update("update  t_user set username= ? where id = ?", "rose",2);
    }
}
